import {lazy} from "react";
import {ApartmentOutlined } from '@ant-design/icons'
import { RouterRow } from '@/router/module/user'
import { lqyout } from '@/router/constant'

const routes:Array<RouterRow> = [
  {
    path:'/system',
    name:"system",
    component :lqyout,
    icon:ApartmentOutlined,
    meta:{
      key:'system'
    },
    routes:[
      {
        path:'/system/role',
        name:"role",
        component :lazy(() => import("@/pages/system/role")),
        meta:{
          key:'system-role'
        },
      },
      {
        path:'/system/user',
        name:"user",
        component :lazy(() => import("@/pages/system/user")),
        meta:{
          key:'system-user'
        },
      }
    ]


  }

]
export default routes
